public class reverseString {
    public static String reverseString(String nums){
//        char[] chars = nums.toCharArray();
        StringBuilder sb = new StringBuilder(nums);
        return sb.reverse().toString();
    }

    public static void main(String[] args){
        String nums = "hello";

        System.out.println(reverseString(nums));
    }
}
